package com.px.common.core.domain.model;

import com.px.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 当前登陆用户行政地区信息
 *
 * @author 品讯科技
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("当前登陆用户行政地区信息")
public class UserRegionVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("行政区划ID")
    private Long id;

    @Excel(name = "地区名称")
    @ApiModelProperty("地区名称")
    private String name;

    @Excel(name = "行政区划代码")
    @ApiModelProperty("行政区划代码")
    private String adcode;

    @ApiModelProperty("等级（1.国家Country 2.省份Province 3.州市City 4.区县District 5.街镇Town 6.村社Village See:RegionLevel）")
    private Integer level;

    @ApiModelProperty(value = "上级ID", hidden = true)
    private Long parentId;

}
